// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'oss-common/theme/variable-theme.scss' // 主题
import 'oss-common/css/index.css' // 通用样式
import 'oss-common/icon/iconfont.css' // 图标
import 'oss-common/theme/font.css' // 字体
import '@/assets/font.css' // 自定义字体
import '@/libs/permission' // 自定义按钮组权限功能控制
import util, { routerExtend } from 'oss-common/util/request'
import i18n from 'oss-common/util/lang'
import store from './store'

Vue.prototype.$store = store

import AFTableColumn from '../node_modules/af-table-column'
Vue.use(AFTableColumn)

Vue.use(ElementUI, {
    // i18n: (key, value) => i18n.t(key, value) //注释掉默认不使用国际化英文
})
routerExtend(router)
Vue.prototype.$utils = util

Vue.config.productionTip = false

export const WhetherUseI18n = false // 是否使用国际化
/* eslint-disable no-new */
export let vm = new Vue({
    el: '#app',
    i18n,
    router,
    components: { App },
    template: '<App/>'
})
